<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Kinetis Bootloader Host: AESKey&lt; S &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Kinetis Bootloader Host
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">Host Tools for Kinetis devices</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Introduction</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_a_e_s_key.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="class_a_e_s_key-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">AESKey&lt; S &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Generic AES key class.  
 <a href="class_a_e_s_key.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="apps_2elftosb_2common_2_a_e_s_key_8h_source.html">AESKey.h</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for AESKey&lt; S &gt;:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="class_a_e_s_key__inherit__graph.svg" width="116" height="112"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for AESKey&lt; S &gt;:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="class_a_e_s_key__coll__graph.svg" width="178" height="127"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a28267a63608cee1e93f132b5fff156d0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a28267a63608cee1e93f132b5fff156d0"></a>
typedef uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_e_s_key.html#a28267a63608cee1e93f132b5fff156d0">key_t</a>[S/8]</td></tr>
<tr class="memdesc:a28267a63608cee1e93f132b5fff156d0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Type for this size of AES key. <br /></td></tr>
<tr class="separator:a28267a63608cee1e93f132b5fff156d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28267a63608cee1e93f132b5fff156d0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a28267a63608cee1e93f132b5fff156d0"></a>
typedef uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_e_s_key.html#a28267a63608cee1e93f132b5fff156d0">key_t</a>[S/8]</td></tr>
<tr class="memdesc:a28267a63608cee1e93f132b5fff156d0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Type for this size of AES key. <br /></td></tr>
<tr class="separator:a28267a63608cee1e93f132b5fff156d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:af914ca295a57ed2693324c852c650cc8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_e_s_key.html#af914ca295a57ed2693324c852c650cc8">AESKey</a> ()</td></tr>
<tr class="memdesc:af914ca295a57ed2693324c852c650cc8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor.  <a href="#af914ca295a57ed2693324c852c650cc8">More...</a><br /></td></tr>
<tr class="separator:af914ca295a57ed2693324c852c650cc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a13230aa565863a4ed2846b62418a3b47"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a13230aa565863a4ed2846b62418a3b47"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_e_s_key.html#a13230aa565863a4ed2846b62418a3b47">AESKey</a> (const <a class="el" href="class_a_e_s_key.html#a28267a63608cee1e93f132b5fff156d0">key_t</a> &amp;key)</td></tr>
<tr class="memdesc:a13230aa565863a4ed2846b62418a3b47"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor taking a key value reference. <br /></td></tr>
<tr class="separator:a13230aa565863a4ed2846b62418a3b47"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9fd39e728ff4edbde78c2f1268845dc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab9fd39e728ff4edbde78c2f1268845dc"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>AESKey</b> (const <a class="el" href="class_a_e_s_key.html#a28267a63608cee1e93f132b5fff156d0">key_t</a> *key)</td></tr>
<tr class="separator:ab9fd39e728ff4edbde78c2f1268845dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5437cbcc10cd4c57ff88bf3e75c40ba5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5437cbcc10cd4c57ff88bf3e75c40ba5"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_e_s_key.html#a5437cbcc10cd4c57ff88bf3e75c40ba5">AESKey</a> (std::istream &amp;stream)</td></tr>
<tr class="memdesc:a5437cbcc10cd4c57ff88bf3e75c40ba5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor, reads key from stream in hex format. <br /></td></tr>
<tr class="separator:a5437cbcc10cd4c57ff88bf3e75c40ba5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e866e1af7155304a19732f517dcb738"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2e866e1af7155304a19732f517dcb738"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_e_s_key.html#a2e866e1af7155304a19732f517dcb738">AESKey</a> (const <a class="el" href="class_a_e_s_key.html">AESKey</a>&lt; S &gt; &amp;other)</td></tr>
<tr class="memdesc:a2e866e1af7155304a19732f517dcb738"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor. <br /></td></tr>
<tr class="separator:a2e866e1af7155304a19732f517dcb738"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac699cd9cb2b305363f949feb98a2415f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_e_s_key.html#ac699cd9cb2b305363f949feb98a2415f">~AESKey</a> ()</td></tr>
<tr class="memdesc:ac699cd9cb2b305363f949feb98a2415f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#ac699cd9cb2b305363f949feb98a2415f">More...</a><br /></td></tr>
<tr class="separator:ac699cd9cb2b305363f949feb98a2415f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed4322b6781189d25b38fa7813f1ce61"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aed4322b6781189d25b38fa7813f1ce61"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_e_s_key.html#aed4322b6781189d25b38fa7813f1ce61">randomize</a> ()</td></tr>
<tr class="memdesc:aed4322b6781189d25b38fa7813f1ce61"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set to the key to a randomly generated value. <br /></td></tr>
<tr class="separator:aed4322b6781189d25b38fa7813f1ce61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad470d8e20511198086c9efcd3013b393"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad470d8e20511198086c9efcd3013b393"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_e_s_key.html#ad470d8e20511198086c9efcd3013b393">readFromStream</a> (std::istream &amp;stream)</td></tr>
<tr class="memdesc:ad470d8e20511198086c9efcd3013b393"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the key from a hex encoded data stream. <br /></td></tr>
<tr class="separator:ad470d8e20511198086c9efcd3013b393"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4433d58e833a92cba9a3290fe6b14c6b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4433d58e833a92cba9a3290fe6b14c6b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_e_s_key.html#a4433d58e833a92cba9a3290fe6b14c6b">writeToStream</a> (std::ostream &amp;stream)</td></tr>
<tr class="memdesc:a4433d58e833a92cba9a3290fe6b14c6b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes the key to a data stream in hex encoded format. <br /></td></tr>
<tr class="separator:a4433d58e833a92cba9a3290fe6b14c6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af914ca295a57ed2693324c852c650cc8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_e_s_key.html#af914ca295a57ed2693324c852c650cc8">AESKey</a> ()</td></tr>
<tr class="memdesc:af914ca295a57ed2693324c852c650cc8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor.  <a href="#af914ca295a57ed2693324c852c650cc8">More...</a><br /></td></tr>
<tr class="separator:af914ca295a57ed2693324c852c650cc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a13230aa565863a4ed2846b62418a3b47"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a13230aa565863a4ed2846b62418a3b47"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_e_s_key.html#a13230aa565863a4ed2846b62418a3b47">AESKey</a> (const <a class="el" href="class_a_e_s_key.html#a28267a63608cee1e93f132b5fff156d0">key_t</a> &amp;key)</td></tr>
<tr class="memdesc:a13230aa565863a4ed2846b62418a3b47"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor taking a key value reference. <br /></td></tr>
<tr class="separator:a13230aa565863a4ed2846b62418a3b47"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9fd39e728ff4edbde78c2f1268845dc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab9fd39e728ff4edbde78c2f1268845dc"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>AESKey</b> (const <a class="el" href="class_a_e_s_key.html#a28267a63608cee1e93f132b5fff156d0">key_t</a> *key)</td></tr>
<tr class="separator:ab9fd39e728ff4edbde78c2f1268845dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5437cbcc10cd4c57ff88bf3e75c40ba5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5437cbcc10cd4c57ff88bf3e75c40ba5"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_e_s_key.html#a5437cbcc10cd4c57ff88bf3e75c40ba5">AESKey</a> (std::istream &amp;stream)</td></tr>
<tr class="memdesc:a5437cbcc10cd4c57ff88bf3e75c40ba5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor, reads key from stream in hex format. <br /></td></tr>
<tr class="separator:a5437cbcc10cd4c57ff88bf3e75c40ba5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e866e1af7155304a19732f517dcb738"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2e866e1af7155304a19732f517dcb738"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_e_s_key.html#a2e866e1af7155304a19732f517dcb738">AESKey</a> (const <a class="el" href="class_a_e_s_key.html">AESKey</a>&lt; S &gt; &amp;other)</td></tr>
<tr class="memdesc:a2e866e1af7155304a19732f517dcb738"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor. <br /></td></tr>
<tr class="separator:a2e866e1af7155304a19732f517dcb738"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac699cd9cb2b305363f949feb98a2415f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_e_s_key.html#ac699cd9cb2b305363f949feb98a2415f">~AESKey</a> ()</td></tr>
<tr class="memdesc:ac699cd9cb2b305363f949feb98a2415f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#ac699cd9cb2b305363f949feb98a2415f">More...</a><br /></td></tr>
<tr class="separator:ac699cd9cb2b305363f949feb98a2415f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed4322b6781189d25b38fa7813f1ce61"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aed4322b6781189d25b38fa7813f1ce61"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_e_s_key.html#aed4322b6781189d25b38fa7813f1ce61">randomize</a> ()</td></tr>
<tr class="memdesc:aed4322b6781189d25b38fa7813f1ce61"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set to the key to a randomly generated value. <br /></td></tr>
<tr class="separator:aed4322b6781189d25b38fa7813f1ce61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad470d8e20511198086c9efcd3013b393"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad470d8e20511198086c9efcd3013b393"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_e_s_key.html#ad470d8e20511198086c9efcd3013b393">readFromStream</a> (std::istream &amp;stream)</td></tr>
<tr class="memdesc:ad470d8e20511198086c9efcd3013b393"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the key from a hex encoded data stream. <br /></td></tr>
<tr class="separator:ad470d8e20511198086c9efcd3013b393"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a372748d14db9dff03b0fe92cd84538"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9a372748d14db9dff03b0fe92cd84538"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_e_s_key.html#a9a372748d14db9dff03b0fe92cd84538">writeToStream</a> (std::ostream &amp;stream) const </td></tr>
<tr class="memdesc:a9a372748d14db9dff03b0fe92cd84538"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes the key to a data stream in hex encoded format. <br /></td></tr>
<tr class="separator:a9a372748d14db9dff03b0fe92cd84538"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Key accessors</div></td></tr>
<tr class="memitem:af1e9b908d7afa5e194bf317d32df1571"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af1e9b908d7afa5e194bf317d32df1571"></a>
const <a class="el" href="class_a_e_s_key.html#a28267a63608cee1e93f132b5fff156d0">key_t</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getKey</b> () const </td></tr>
<tr class="separator:af1e9b908d7afa5e194bf317d32df1571"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acdf63967d4c7209ddff90dc41fa21ae7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acdf63967d4c7209ddff90dc41fa21ae7"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>getKey</b> (<a class="el" href="class_a_e_s_key.html#a28267a63608cee1e93f132b5fff156d0">key_t</a> *key) const </td></tr>
<tr class="separator:acdf63967d4c7209ddff90dc41fa21ae7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af887eeb9b5ef9a459c100e8918ffd1fd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af887eeb9b5ef9a459c100e8918ffd1fd"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setKey</b> (const <a class="el" href="class_a_e_s_key.html#a28267a63608cee1e93f132b5fff156d0">key_t</a> &amp;key)</td></tr>
<tr class="separator:af887eeb9b5ef9a459c100e8918ffd1fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac194776aacf073b4a97260c0f13142a5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac194776aacf073b4a97260c0f13142a5"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setKey</b> (const <a class="el" href="class_a_e_s_key.html#a28267a63608cee1e93f132b5fff156d0">key_t</a> *key)</td></tr>
<tr class="separator:ac194776aacf073b4a97260c0f13142a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6dc0336cb5fb9e22a239712ac73d08a4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6dc0336cb5fb9e22a239712ac73d08a4"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setKey</b> (const <a class="el" href="class_a_e_s_key.html">AESKey</a>&lt; S &gt; &amp;key)</td></tr>
<tr class="separator:a6dc0336cb5fb9e22a239712ac73d08a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1e9b908d7afa5e194bf317d32df1571"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af1e9b908d7afa5e194bf317d32df1571"></a>
const <a class="el" href="class_a_e_s_key.html#a28267a63608cee1e93f132b5fff156d0">key_t</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getKey</b> () const </td></tr>
<tr class="separator:af1e9b908d7afa5e194bf317d32df1571"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acdf63967d4c7209ddff90dc41fa21ae7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acdf63967d4c7209ddff90dc41fa21ae7"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>getKey</b> (<a class="el" href="class_a_e_s_key.html#a28267a63608cee1e93f132b5fff156d0">key_t</a> *key) const </td></tr>
<tr class="separator:acdf63967d4c7209ddff90dc41fa21ae7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af887eeb9b5ef9a459c100e8918ffd1fd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af887eeb9b5ef9a459c100e8918ffd1fd"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setKey</b> (const <a class="el" href="class_a_e_s_key.html#a28267a63608cee1e93f132b5fff156d0">key_t</a> &amp;key)</td></tr>
<tr class="separator:af887eeb9b5ef9a459c100e8918ffd1fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac194776aacf073b4a97260c0f13142a5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac194776aacf073b4a97260c0f13142a5"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setKey</b> (const <a class="el" href="class_a_e_s_key.html#a28267a63608cee1e93f132b5fff156d0">key_t</a> *key)</td></tr>
<tr class="separator:ac194776aacf073b4a97260c0f13142a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6dc0336cb5fb9e22a239712ac73d08a4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6dc0336cb5fb9e22a239712ac73d08a4"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setKey</b> (const <a class="el" href="class_a_e_s_key.html">AESKey</a>&lt; S &gt; &amp;key)</td></tr>
<tr class="separator:a6dc0336cb5fb9e22a239712ac73d08a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_a_e_s_key_base"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_a_e_s_key_base')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_a_e_s_key_base.html">AESKeyBase</a></td></tr>
<tr class="memitem:ad947672190cb9c91551d39f312fe9a06 inherit pub_methods_class_a_e_s_key_base"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_e_s_key_base.html#ad947672190cb9c91551d39f312fe9a06">_readFromStream</a> (std::istream &amp;stream, unsigned bytes, uint8_t *buffer)</td></tr>
<tr class="memdesc:ad947672190cb9c91551d39f312fe9a06 inherit pub_methods_class_a_e_s_key_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads hex encoded data from <em>stream</em>.  <a href="#ad947672190cb9c91551d39f312fe9a06">More...</a><br /></td></tr>
<tr class="separator:ad947672190cb9c91551d39f312fe9a06 inherit pub_methods_class_a_e_s_key_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9032dd447ad020f36ca4f371a6b4028e inherit pub_methods_class_a_e_s_key_base"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_e_s_key_base.html#a9032dd447ad020f36ca4f371a6b4028e">_writeToStream</a> (std::ostream &amp;stream, unsigned bytes, const uint8_t *buffer)</td></tr>
<tr class="memdesc:a9032dd447ad020f36ca4f371a6b4028e inherit pub_methods_class_a_e_s_key_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes hex encoded data to <em>stream</em>.  <a href="#a9032dd447ad020f36ca4f371a6b4028e">More...</a><br /></td></tr>
<tr class="separator:a9032dd447ad020f36ca4f371a6b4028e inherit pub_methods_class_a_e_s_key_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9ec4349d433a1907e4bef458b4003a0 inherit pub_methods_class_a_e_s_key_base"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_e_s_key_base.html#ab9ec4349d433a1907e4bef458b4003a0">_readFromStream</a> (std::istream &amp;stream, unsigned bytes, uint8_t *buffer) const </td></tr>
<tr class="memdesc:ab9ec4349d433a1907e4bef458b4003a0 inherit pub_methods_class_a_e_s_key_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads hex encoded data from <em>stream</em>.  <a href="#ab9ec4349d433a1907e4bef458b4003a0">More...</a><br /></td></tr>
<tr class="separator:ab9ec4349d433a1907e4bef458b4003a0 inherit pub_methods_class_a_e_s_key_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89e6959ea0ca2fae8d22665faa3998ee inherit pub_methods_class_a_e_s_key_base"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_e_s_key_base.html#a89e6959ea0ca2fae8d22665faa3998ee">_writeToStream</a> (std::ostream &amp;stream, unsigned bytes, const uint8_t *buffer) const </td></tr>
<tr class="memdesc:a89e6959ea0ca2fae8d22665faa3998ee inherit pub_methods_class_a_e_s_key_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes hex encoded data to <em>stream</em>.  <a href="#a89e6959ea0ca2fae8d22665faa3998ee">More...</a><br /></td></tr>
<tr class="separator:a89e6959ea0ca2fae8d22665faa3998ee inherit pub_methods_class_a_e_s_key_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:acabfb99334073136fd71c51e82c8911a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acabfb99334073136fd71c51e82c8911a"></a>
<a class="el" href="class_a_e_s_key.html#a28267a63608cee1e93f132b5fff156d0">key_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_e_s_key.html#acabfb99334073136fd71c51e82c8911a">m_key</a></td></tr>
<tr class="memdesc:acabfb99334073136fd71c51e82c8911a"><td class="mdescLeft">&#160;</td><td class="mdescRight">The key value. <br /></td></tr>
<tr class="separator:acabfb99334073136fd71c51e82c8911a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Operators</h2></td></tr>
<tr class="memitem:a57d7c71b127cf91bb7636d09a61804bc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a57d7c71b127cf91bb7636d09a61804bc"></a>
const <a class="el" href="class_a_e_s_key.html">AESKey</a>&lt; S &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="class_a_e_s_key.html">AESKey</a>&lt; S &gt; &amp;key)</td></tr>
<tr class="separator:a57d7c71b127cf91bb7636d09a61804bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73f1844b9f84602943fd2c2a189cfdef"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a73f1844b9f84602943fd2c2a189cfdef"></a>
const <a class="el" href="class_a_e_s_key.html">AESKey</a>&lt; S &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="class_a_e_s_key.html#a28267a63608cee1e93f132b5fff156d0">key_t</a> &amp;key)</td></tr>
<tr class="separator:a73f1844b9f84602943fd2c2a189cfdef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9a6bea263b8360d339260ec5750e87b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae9a6bea263b8360d339260ec5750e87b"></a>
const <a class="el" href="class_a_e_s_key.html">AESKey</a>&lt; S &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="class_a_e_s_key.html#a28267a63608cee1e93f132b5fff156d0">key_t</a> *key)</td></tr>
<tr class="separator:ae9a6bea263b8360d339260ec5750e87b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ddbfa355962954dd22230d32a448da6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4ddbfa355962954dd22230d32a448da6"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>operator const key_t &amp;</b> () const </td></tr>
<tr class="separator:a4ddbfa355962954dd22230d32a448da6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adce84752e23705d12fbbfe10608bc37c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adce84752e23705d12fbbfe10608bc37c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>operator const key_t *</b> () const </td></tr>
<tr class="separator:adce84752e23705d12fbbfe10608bc37c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57d7c71b127cf91bb7636d09a61804bc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a57d7c71b127cf91bb7636d09a61804bc"></a>
const <a class="el" href="class_a_e_s_key.html">AESKey</a>&lt; S &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="class_a_e_s_key.html">AESKey</a>&lt; S &gt; &amp;key)</td></tr>
<tr class="separator:a57d7c71b127cf91bb7636d09a61804bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73f1844b9f84602943fd2c2a189cfdef"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a73f1844b9f84602943fd2c2a189cfdef"></a>
const <a class="el" href="class_a_e_s_key.html">AESKey</a>&lt; S &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="class_a_e_s_key.html#a28267a63608cee1e93f132b5fff156d0">key_t</a> &amp;key)</td></tr>
<tr class="separator:a73f1844b9f84602943fd2c2a189cfdef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9a6bea263b8360d339260ec5750e87b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae9a6bea263b8360d339260ec5750e87b"></a>
const <a class="el" href="class_a_e_s_key.html">AESKey</a>&lt; S &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="class_a_e_s_key.html#a28267a63608cee1e93f132b5fff156d0">key_t</a> *key)</td></tr>
<tr class="separator:ae9a6bea263b8360d339260ec5750e87b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ddbfa355962954dd22230d32a448da6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4ddbfa355962954dd22230d32a448da6"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>operator const key_t &amp;</b> () const </td></tr>
<tr class="separator:a4ddbfa355962954dd22230d32a448da6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adce84752e23705d12fbbfe10608bc37c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adce84752e23705d12fbbfe10608bc37c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>operator const key_t *</b> () const </td></tr>
<tr class="separator:adce84752e23705d12fbbfe10608bc37c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a648ef2cf28dbcc2961969ca93bf5c47d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a648ef2cf28dbcc2961969ca93bf5c47d"></a>
std::ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator&lt;&lt;</b> (std::ostream &amp;os, const <a class="el" href="class_a_e_s_key.html">AESKey</a>&lt; S &gt; &amp;key)</td></tr>
<tr class="separator:a648ef2cf28dbcc2961969ca93bf5c47d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;int S&gt;<br />
class AESKey&lt; S &gt;</h3>

<p>Generic AES key class. </p>
<p>The template parameter <em>S</em> is the number of bits in the key.</p>
<p>The underlying key type can be accessed like this: <a class="el" href="class_a_e_s_key.html#a28267a63608cee1e93f132b5fff156d0" title="Type for this size of AES key. ">AESKey&lt;128&gt;::key_t</a></p>
<p>When a key instance is destroyed, it erases the key data by setting it to all zeroes.</p>
<p><a class="el" href="class_a_e_s_key.html">AESKey&lt;128&gt;</a> key = AESKey&lt;128&gt;::readFromStream(s);</p>
<p>The template parameter <em>S</em> is the number of bits in the key.</p>
<p>The underlying key type can be accessed like this: <a class="el" href="class_a_e_s_key.html#a28267a63608cee1e93f132b5fff156d0" title="Type for this size of AES key. ">AESKey&lt;128&gt;::key_t</a></p>
<p>When a key instance is destroyed, it erases the key data by setting it to all zeroes.</p>
<p><a class="el" href="class_a_e_s_key.html">AESKey&lt;128&gt;</a> key = AESKey&lt;128&gt;::readFromStream(s); </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="af914ca295a57ed2693324c852c650cc8"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int S&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_a_e_s_key.html">AESKey</a>&lt; S &gt;::<a class="el" href="class_a_e_s_key.html">AESKey</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Default constructor. </p>
<p>Initializes the key to 0. </p>

</div>
</div>
<a class="anchor" id="ac699cd9cb2b305363f949feb98a2415f"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int S&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_a_e_s_key.html">AESKey</a>&lt; S &gt;::~<a class="el" href="class_a_e_s_key.html">AESKey</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Destructor. </p>
<p>Sets the key value to zero. </p>

</div>
</div>
<a class="anchor" id="af914ca295a57ed2693324c852c650cc8"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int S&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_a_e_s_key.html">AESKey</a>&lt; S &gt;::<a class="el" href="class_a_e_s_key.html">AESKey</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Default constructor. </p>
<p>Initializes the key to 0. </p>

</div>
</div>
<a class="anchor" id="ac699cd9cb2b305363f949feb98a2415f"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int S&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_a_e_s_key.html">AESKey</a>&lt; S &gt;::~<a class="el" href="class_a_e_s_key.html">AESKey</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Destructor. </p>
<p>Sets the key value to zero. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="apps_2elftosb_2common_2_a_e_s_key_8h_source.html">apps/elftosb/common/AESKey.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_a_e_s_key.html">AESKey</a></li>
    <li class="footer">Generated on Mon Mar 7 2016 16:49:50 for Kinetis Bootloader Host by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
